package com.yuexunit.finance.project.entity.lexicon;

/**
 * @author wenwenlong
 */
public enum ConstractStateEnum {

	UNKNOWN("未知"), UNSUBMIT("待提交"), PROTOCOL_SUBMITED("协议已提交"), CONTRACT_SUBMITED("合同已提交"),PLATFORM_CONTRACT_SUBMITED("平台合同已提交"),CUSTOMER_CONTRACT_SUBMITED("客户合同已提交");

	private final String paramType;

	private ConstractStateEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 理货异常标注 0:未知/1:正常/2:异常
	 * @return 参数类型枚举
	 */
	public static ConstractStateEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}
}
